﻿using System;
using System.Windows;
using DCT.Model;

namespace DCT.ViewModel
{
    public class SignalViewModel : DeviceBaseViewModel
    {
        #region Constructor

        public SignalViewModel(SignalModel sgModel, SignalGraphModel sgGraphModel)
            : base(sgModel, sgGraphModel, new Point(0.66, 0.5))
        {
            if (sgModel == null)
                throw new ArgumentNullException("SignalModel");

            if (sgGraphModel == null)
                throw new ArgumentNullException("SignalGraphModel");

            _sgModel = sgModel;
            _sgGraphModel = sgGraphModel;
        }

        #endregion // Constructor

        #region Fields

        SignalModel _sgModel;
        SignalGraphModel _sgGraphModel;

        #endregion // Fields

        #region Properties

        public SignalModel SignalModel
        {
            get
            {
                return _sgModel;
            }
        }

        public SignalGraphModel SignalGraphModel
        {
            get
            {
                return _sgGraphModel;
            }
        }

        public override double DeviceHeight
        {
            get
            {
                return base.DeviceHeight;
            }
        }

        public override double DeviceWidth
        {
            get
            {
                return base.DeviceWidth;
            }
        }

        #endregion //Properties
    }
}
